package com.itheima.ssm.service.impl;

import com.itheima.ssm.dao.ISysLogDao;
import com.itheima.ssm.domain.SysLong;
import com.itheima.ssm.service.ISysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service
public class ISysLogServiceImpl implements ISysLogService {
@Autowired
    private ISysLogDao sysLogDao;
    @Override
    public void saveLog(SysLong sysLong) throws Exception {
        sysLogDao.saveLog(sysLong);
    }

    @Override
    public List<SysLong> findAll() {
        return sysLogDao.findAll();
    }
}
